import request from './request'

export function getRoom() {
 return request.get('/room/listRooms')
}

export function addRoom(roomName: string, gameState: string) {
 return request.post('/room/addRoom', { roomName, gameState})
}

// export function joinRoom(roomId: string, playerName: string) {
//  return request.get('/room/joinRoom', {
//       params: { roomId, playerName }
//     })
// }